package com.olymtech.jbricks.dingtalk;

import com.olymtech.jbricks.dingtalk.message.Message;
import com.olymtech.jbricks.dingtalk.message.delivery.MessageDelivery;

/**
 * @author haoting.wang
 * @date 2020/12/10 1:55 下午
 **/
public interface OlymtechDingTalkClient {

    /**
     * 获取token
     *
     * @return
     */
    String fetchAccessToken();

    /**
     * 发送消息
     *
     * @param messageDelivery
     * @param message
     * @return
     */
    boolean send(MessageDelivery messageDelivery, Message message);


}
